<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

</head>
<body>
    <div id="app">
        <h1> {{meg}} </h1>
        账号：<input type="text" v-model="id">
        密码：<input type="password" v-model="password">
        <P>{{id}}</P>
        <P>{{password}}</P>
        <img :src="vcc" alt="">
    </div>
    
    <script src="https://unpkg.com/vue@next"></script>
    <script>
        const app =Vue.createApp({
            data(){
                return{
                    meg:"测试",
                    id:"",
                    password:"",
                    vcc:'//www.baidu.com/img/baidu_sylogo1.gif'
                }
            }
        })
        app.mount("#app")

        // export default{
        //     data(){
        //         return{
        //             meg:"测试"
        //         }
        //     }
        // }
    </script>
</body>
</html>